import { Module } from '@nestjs/common';
import { VideoService } from './video.service';
import { VideoController } from './video.controller';
import { MongooseModule } from '@nestjs/mongoose';
import { Video, VideoSchema } from 'src/mongoScheme/video.schema';
import { Comment, CommentSchema } from 'src/mongoScheme/comment.schema';
import { UserModule } from 'src/user/user.module';
import { Like, LikeSchema } from 'src/mongoScheme/like.schema';
import { CacheModule } from 'src/cache/cache.module';

@Module({
  imports:[
    CacheModule,
    UserModule,
    MongooseModule.forFeature([
      {name:Video.name,schema:VideoSchema},
      {name:Comment.name,schema:CommentSchema},
      {name:Like.name,schema:LikeSchema}
    ])
  ],
  controllers: [VideoController],
  providers: [VideoService],
})
export class VideoModule {}
